using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SnsCommentInfo : GeneratedMessageLite<SnsCommentInfo, SnsCommentInfo.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SnsCommentInfo, SnsCommentInfo.Builder>
		{
			private bool resultIsReadOnly;
			private SnsCommentInfo result;
			protected override SnsCommentInfo.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SnsCommentInfo MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SnsCommentInfo DefaultInstanceForType
			{
				get
				{
					return SnsCommentInfo.DefaultInstance;
				}
			}
			public string Username
			{
				get
				{
					return this.result.Username;
				}
				set
				{
					this.SetUsername(value);
				}
			}
			public string Nickname
			{
				get
				{
					return this.result.Nickname;
				}
				set
				{
					this.SetNickname(value);
				}
			}
			public uint Source
			{
				get
				{
					return this.result.Source;
				}
				set
				{
					this.SetSource(value);
				}
			}
			public uint Type
			{
				get
				{
					return this.result.Type;
				}
				set
				{
					this.SetType(value);
				}
			}
			public string Content
			{
				get
				{
					return this.result.Content;
				}
				set
				{
					this.SetContent(value);
				}
			}
			public uint CreateTime
			{
				get
				{
					return this.result.CreateTime;
				}
				set
				{
					this.SetCreateTime(value);
				}
			}
			public int CommentId
			{
				get
				{
					return this.result.CommentId;
				}
				set
				{
					this.SetCommentId(value);
				}
			}
			public int ReplyCommentId
			{
				get
				{
					return this.result.ReplyCommentId;
				}
				set
				{
					this.SetReplyCommentId(value);
				}
			}
			public string ReplyUsername
			{
				get
				{
					return this.result.ReplyUsername;
				}
				set
				{
					this.SetReplyUsername(value);
				}
			}
			public Builder()
			{
				this.result = SnsCommentInfo.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SnsCommentInfo cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SnsCommentInfo PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SnsCommentInfo other = this.result;
					this.result = new SnsCommentInfo();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SnsCommentInfo.Builder Clear()
			{
				this.result = SnsCommentInfo.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SnsCommentInfo.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SnsCommentInfo.Builder(this.result);
				}
				return new SnsCommentInfo.Builder().MergeFrom(this.result);
			}
			public override SnsCommentInfo BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SnsCommentInfo.Builder MergeFrom(IMessageLite other)
			{
				if (other is SnsCommentInfo)
				{
					return this.MergeFrom((SnsCommentInfo)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SnsCommentInfo.Builder MergeFrom(SnsCommentInfo other)
			{
				return this;
			}
			public override SnsCommentInfo.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SnsCommentInfo.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SnsCommentInfo._snsCommentInfoFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SnsCommentInfo._snsCommentInfoFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 32u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								this.result.hasUsername = input.ReadString(ref this.result.username_);
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								this.result.hasNickname = input.ReadString(ref this.result.nickname_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasSource = input.ReadUInt32(ref this.result.source_);
								continue;
							}
							if (num3 == 32u)
							{
								this.result.hasType = input.ReadUInt32(ref this.result.type_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 48u)
						{
							if (num3 == 42u)
							{
								this.result.hasContent = input.ReadString(ref this.result.content_);
								continue;
							}
							if (num3 == 48u)
							{
								this.result.hasCreateTime = input.ReadUInt32(ref this.result.createTime_);
								continue;
							}
						}
						else
						{
							if (num3 == 56u)
							{
								this.result.hasCommentId = input.ReadInt32(ref this.result.commentId_);
								continue;
							}
							if (num3 == 64u)
							{
								this.result.hasReplyCommentId = input.ReadInt32(ref this.result.replyCommentId_);
								continue;
							}
							if (num3 == 74u)
							{
								this.result.hasReplyUsername = input.ReadString(ref this.result.replyUsername_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SnsCommentInfo.Builder SetUsername(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUsername = true;
				this.result.username_ = value;
				return this;
			}
			public SnsCommentInfo.Builder ClearUsername()
			{
				this.PrepareBuilder();
				this.result.hasUsername = false;
				this.result.username_ = "";
				return this;
			}
			public SnsCommentInfo.Builder SetNickname(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasNickname = true;
				this.result.nickname_ = value;
				return this;
			}
			public SnsCommentInfo.Builder ClearNickname()
			{
				this.PrepareBuilder();
				this.result.hasNickname = false;
				this.result.nickname_ = "";
				return this;
			}
			public SnsCommentInfo.Builder SetSource(uint value)
			{
				this.PrepareBuilder();
				this.result.hasSource = true;
				this.result.source_ = value;
				return this;
			}
			public SnsCommentInfo.Builder ClearSource()
			{
				this.PrepareBuilder();
				this.result.hasSource = false;
				this.result.source_ = 0u;
				return this;
			}
			public SnsCommentInfo.Builder SetType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasType = true;
				this.result.type_ = value;
				return this;
			}
			public SnsCommentInfo.Builder ClearType()
			{
				this.PrepareBuilder();
				this.result.hasType = false;
				this.result.type_ = 0u;
				return this;
			}
			public SnsCommentInfo.Builder SetContent(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasContent = true;
				this.result.content_ = value;
				return this;
			}
			public SnsCommentInfo.Builder ClearContent()
			{
				this.PrepareBuilder();
				this.result.hasContent = false;
				this.result.content_ = "";
				return this;
			}
			public SnsCommentInfo.Builder SetCreateTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = true;
				this.result.createTime_ = value;
				return this;
			}
			public SnsCommentInfo.Builder ClearCreateTime()
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = false;
				this.result.createTime_ = 0u;
				return this;
			}
			public SnsCommentInfo.Builder SetCommentId(int value)
			{
				this.PrepareBuilder();
				this.result.hasCommentId = true;
				this.result.commentId_ = value;
				return this;
			}
			public SnsCommentInfo.Builder ClearCommentId()
			{
				this.PrepareBuilder();
				this.result.hasCommentId = false;
				this.result.commentId_ = 0;
				return this;
			}
			public SnsCommentInfo.Builder SetReplyCommentId(int value)
			{
				this.PrepareBuilder();
				this.result.hasReplyCommentId = true;
				this.result.replyCommentId_ = value;
				return this;
			}
			public SnsCommentInfo.Builder ClearReplyCommentId()
			{
				this.PrepareBuilder();
				this.result.hasReplyCommentId = false;
				this.result.replyCommentId_ = 0;
				return this;
			}
			public SnsCommentInfo.Builder SetReplyUsername(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasReplyUsername = true;
				this.result.replyUsername_ = value;
				return this;
			}
			public SnsCommentInfo.Builder ClearReplyUsername()
			{
				this.PrepareBuilder();
				this.result.hasReplyUsername = false;
				this.result.replyUsername_ = "";
				return this;
			}
		}
		public const int UsernameFieldNumber = 1;
		public const int NicknameFieldNumber = 2;
		public const int SourceFieldNumber = 3;
		public const int TypeFieldNumber = 4;
		public const int ContentFieldNumber = 5;
		public const int CreateTimeFieldNumber = 6;
		public const int CommentIdFieldNumber = 7;
		public const int ReplyCommentIdFieldNumber = 8;
		public const int ReplyUsernameFieldNumber = 9;
		private static readonly SnsCommentInfo defaultInstance;
		private static readonly string[] _snsCommentInfoFieldNames;
		private static readonly uint[] _snsCommentInfoFieldTags;
		private bool hasUsername;
		private string username_ = "";
		private bool hasNickname;
		private string nickname_ = "";
		private bool hasSource;
		private uint source_;
		private bool hasType;
		private uint type_;
		private bool hasContent;
		private string content_ = "";
		private bool hasCreateTime;
		private uint createTime_;
		private bool hasCommentId;
		private int commentId_;
		private bool hasReplyCommentId;
		private int replyCommentId_;
		private bool hasReplyUsername;
		private string replyUsername_ = "";
		private int memoizedSerializedSize = -1;
		public static SnsCommentInfo DefaultInstance
		{
			get
			{
				return SnsCommentInfo.defaultInstance;
			}
		}
		public override SnsCommentInfo DefaultInstanceForType
		{
			get
			{
				return SnsCommentInfo.DefaultInstance;
			}
		}
		protected override SnsCommentInfo ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string Username
		{
			get
			{
				return this.username_;
			}
		}
		public string Nickname
		{
			get
			{
				return this.nickname_;
			}
		}
		public uint Source
		{
			get
			{
				return this.source_;
			}
		}
		public uint Type
		{
			get
			{
				return this.type_;
			}
		}
		public string Content
		{
			get
			{
				return this.content_;
			}
		}
		public uint CreateTime
		{
			get
			{
				return this.createTime_;
			}
		}
		public int CommentId
		{
			get
			{
				return this.commentId_;
			}
		}
		public int ReplyCommentId
		{
			get
			{
				return this.replyCommentId_;
			}
		}
		public string ReplyUsername
		{
			get
			{
				return this.replyUsername_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasSource && this.hasType && this.hasCreateTime;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasUsername)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.Username);
				}
				if (this.hasNickname)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.Nickname);
				}
				if (this.hasSource)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Source);
				}
				if (this.hasType)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.Type);
				}
				if (this.hasContent)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.Content);
				}
				if (this.hasCreateTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.CreateTime);
				}
				if (this.hasCommentId)
				{
					num += CodedOutputStream.ComputeInt32Size(7, this.CommentId);
				}
				if (this.hasReplyCommentId)
				{
					num += CodedOutputStream.ComputeInt32Size(8, this.ReplyCommentId);
				}
				if (this.hasReplyUsername)
				{
					num += CodedOutputStream.ComputeStringSize(9, this.ReplyUsername);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SnsCommentInfo()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] snsCommentInfoFieldNames = SnsCommentInfo._snsCommentInfoFieldNames;
			if (this.hasUsername)
			{
				output.WriteString(1, snsCommentInfoFieldNames[8], this.Username);
			}
			if (this.hasNickname)
			{
				output.WriteString(2, snsCommentInfoFieldNames[3], this.Nickname);
			}
			if (this.hasSource)
			{
				output.WriteUInt32(3, snsCommentInfoFieldNames[6], this.Source);
			}
			if (this.hasType)
			{
				output.WriteUInt32(4, snsCommentInfoFieldNames[7], this.Type);
			}
			if (this.hasContent)
			{
				output.WriteString(5, snsCommentInfoFieldNames[1], this.Content);
			}
			if (this.hasCreateTime)
			{
				output.WriteUInt32(6, snsCommentInfoFieldNames[2], this.CreateTime);
			}
			if (this.hasCommentId)
			{
				output.WriteInt32(7, snsCommentInfoFieldNames[0], this.CommentId);
			}
			if (this.hasReplyCommentId)
			{
				output.WriteInt32(8, snsCommentInfoFieldNames[4], this.ReplyCommentId);
			}
			if (this.hasReplyUsername)
			{
				output.WriteString(9, snsCommentInfoFieldNames[5], this.ReplyUsername);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasUsername)
			{
				num ^= this.username_.GetHashCode();
			}
			if (this.hasNickname)
			{
				num ^= this.nickname_.GetHashCode();
			}
			if (this.hasSource)
			{
				num ^= this.source_.GetHashCode();
			}
			if (this.hasType)
			{
				num ^= this.type_.GetHashCode();
			}
			if (this.hasContent)
			{
				num ^= this.content_.GetHashCode();
			}
			if (this.hasCreateTime)
			{
				num ^= this.createTime_.GetHashCode();
			}
			if (this.hasCommentId)
			{
				num ^= this.commentId_.GetHashCode();
			}
			if (this.hasReplyCommentId)
			{
				num ^= this.replyCommentId_.GetHashCode();
			}
			if (this.hasReplyUsername)
			{
				num ^= this.replyUsername_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			SnsCommentInfo snsCommentInfo = object_0 as SnsCommentInfo;
			return snsCommentInfo != null && (this.hasUsername == snsCommentInfo.hasUsername && (!this.hasUsername || this.username_.Equals(snsCommentInfo.username_))) && (this.hasNickname == snsCommentInfo.hasNickname && (!this.hasNickname || this.nickname_.Equals(snsCommentInfo.nickname_))) && (this.hasSource == snsCommentInfo.hasSource && (!this.hasSource || this.source_.Equals(snsCommentInfo.source_))) && (this.hasType == snsCommentInfo.hasType && (!this.hasType || this.type_.Equals(snsCommentInfo.type_))) && (this.hasContent == snsCommentInfo.hasContent && (!this.hasContent || this.content_.Equals(snsCommentInfo.content_))) && (this.hasCreateTime == snsCommentInfo.hasCreateTime && (!this.hasCreateTime || this.createTime_.Equals(snsCommentInfo.createTime_))) && (this.hasCommentId == snsCommentInfo.hasCommentId && (!this.hasCommentId || this.commentId_.Equals(snsCommentInfo.commentId_))) && (this.hasReplyCommentId == snsCommentInfo.hasReplyCommentId && (!this.hasReplyCommentId || this.replyCommentId_.Equals(snsCommentInfo.replyCommentId_))) && (this.hasReplyUsername == snsCommentInfo.hasReplyUsername && (!this.hasReplyUsername || this.replyUsername_.Equals(snsCommentInfo.replyUsername_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SnsCommentInfo, SnsCommentInfo.Builder>.PrintField("Username", this.hasUsername, this.username_, writer);
			GeneratedMessageLite<SnsCommentInfo, SnsCommentInfo.Builder>.PrintField("Nickname", this.hasNickname, this.nickname_, writer);
			GeneratedMessageLite<SnsCommentInfo, SnsCommentInfo.Builder>.PrintField("Source", this.hasSource, this.source_, writer);
			GeneratedMessageLite<SnsCommentInfo, SnsCommentInfo.Builder>.PrintField("Type", this.hasType, this.type_, writer);
			GeneratedMessageLite<SnsCommentInfo, SnsCommentInfo.Builder>.PrintField("Content", this.hasContent, this.content_, writer);
			GeneratedMessageLite<SnsCommentInfo, SnsCommentInfo.Builder>.PrintField("CreateTime", this.hasCreateTime, this.createTime_, writer);
			GeneratedMessageLite<SnsCommentInfo, SnsCommentInfo.Builder>.PrintField("CommentId", this.hasCommentId, this.commentId_, writer);
			GeneratedMessageLite<SnsCommentInfo, SnsCommentInfo.Builder>.PrintField("ReplyCommentId", this.hasReplyCommentId, this.replyCommentId_, writer);
			GeneratedMessageLite<SnsCommentInfo, SnsCommentInfo.Builder>.PrintField("ReplyUsername", this.hasReplyUsername, this.replyUsername_, writer);
		}
		public static SnsCommentInfo ParseFrom(byte[] data)
		{
			return SnsCommentInfo.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SnsCommentInfo MakeReadOnly()
		{
			return this;
		}
		public static SnsCommentInfo.Builder CreateBuilder()
		{
			return new SnsCommentInfo.Builder();
		}
		public override SnsCommentInfo.Builder ToBuilder()
		{
			return SnsCommentInfo.CreateBuilder(this);
		}
		public override SnsCommentInfo.Builder CreateBuilderForType()
		{
			return new SnsCommentInfo.Builder();
		}
		public static SnsCommentInfo.Builder CreateBuilder(SnsCommentInfo prototype)
		{
			return new SnsCommentInfo.Builder(prototype);
		}
		static SnsCommentInfo()
		{
			SnsCommentInfo.defaultInstance = new SnsCommentInfo().MakeReadOnly();
			SnsCommentInfo._snsCommentInfoFieldNames = new string[]
			{
				"CommentId",
				"Content",
				"CreateTime",
				"Nickname",
				"ReplyCommentId",
				"ReplyUsername",
				"Source",
				"Type",
				"Username"
			};
			SnsCommentInfo._snsCommentInfoFieldTags = new uint[]
			{
				56u,
				42u,
				48u,
				18u,
				64u,
				74u,
				24u,
				32u,
				10u
			};
			object.ReferenceEquals(micromsg.Proto.SnsCommentInfo.Descriptor, null);
		}
	}
}
